package homework;

import java.util.Scanner;

public class zy4 {
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		String str=sc.next();
		System.out.println(encrypt(str));
		
	}
	public static String encrypt(String input) {
        StringBuilder result = new StringBuilder();

        for (char c : input.toCharArray()) {
            if (c>='A' && c<='Z') {
                if(c=='Z'){
                	c='a';
                }else{
                	c=(char) (c+33);
                }
            } else if (c>='a' && c<='z') {
                result.append(getNumber(c));
                continue;
            } else if (c>='0' && c<='9') {
                result.append(c);
                continue;
            }
            result.append(c);
        }

        return result.toString();
    }

    private static int getNumber(char letter) {
        switch (letter) {
            case 'a': case 'b': case 'c': return 2;
            case 'd': case 'e': case 'f': return 3;
            case 'g': case 'h': case 'i': return 4;
            case 'j': case 'k': case 'l': return 5;
            case 'm': case 'n': case 'o': return 6;
            case 'p': case 'q': case 'r': case 's': return 7;
            case 't': case 'u': case 'v': return 8;
            case 'w': case 'x': case 'y': case 'z': return 9;
            default: return 0;
        }
    }
    
}
